
import Main from '@/views/Main.vue';

// 作为Main组件的子页面展示并且在左侧菜单显示的路由写在appRouter里
export const appRouter = [
    {
        path: '/admin',
        icon: 'itemType',
        name: 'itemType',
        title: {i18n: 'admin_menu'},
        component: Main,
        children: [
            { path: 'role', title: {i18n: 'domain_role'}, name: 'role_index', component: () => import('@/views/cn/qs/qatool/role/index.vue') },
            { path: 'user', title: {i18n: 'domain_user'}, name: 'user_index', component: () => import('@/views/cn/qs/qatool/user/index.vue') },
            { path: 'itemType', title: {i18n: 'domain_itemType'}, name: 'itemType_index', component: () => import('@/views/cn/qs/qatool/itemType/index.vue') },
            { path: 'company', title: {i18n: 'domain_company'}, name: 'company_index', component: () => import('@/views/cn/qs/qatool/company/index.vue') },
            { path: 'userRole', title: {i18n: 'domain_userRole'}, name: 'userRole_index', component: () => import('@/views/cn/qs/qatool/userRole/index.vue') }
        ]
    },
    {
        path: '/teacher',
        icon: 'answer',
        name: 'answer',
        title: {i18n: 'teacher_menu'},
        component: Main,
        children: [
            { path: 'product', title: {i18n: 'domain_product'}, name: 'product_index', component: () => import('@/views/cn/qs/qatool/product/index.vue') },
            { path: 'checkList', title: {i18n: 'domain_checkList'}, name: 'checkList_index', component: () => import('@/views/cn/qs/qatool/checkList/index.vue') },
            { path: 'checkResult', title: {i18n: 'domain_checkResult'}, name: 'checkResult_index', component: () => import('@/views/cn/qs/qatool/checkResult/index.vue') }
        ]
    }
];
